package belle.com.myapp.view.fm.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import belle.com.myapp.R;
import belle.com.myapp.view.fm.model.EveryResponse;

/**
 * Title :
 * Description :
 * Author:  Belle Guan    date : 2018/6/14 11:07
 * Update :                date :
 * Version : 1.0.0
 * Copyright : copyright(c) 浙江亚厦股份有限公司 2017 ~ 2020 版权所有
 *
 * @author guanjiali1
 */
public class EveryAdapter extends BaseQuickAdapter<EveryResponse.RecommendBean, BaseViewHolder> {

    public EveryAdapter(int layoutResId, @Nullable List<EveryResponse.RecommendBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, EveryResponse.RecommendBean item) {
        helper.addOnClickListener(R.id.ll_music_layout);
        helper.setImageResource(R.id.iv_music_image, Integer.parseInt(item.getAlbum().getArtist().getImg1v1Url()));
    }
}